<template>
  <div class="emptyBox">
    <el-empty :description="text" :image-size="size" />
  </div>
</template>
<script setup lang="ts">
import { getCurrentInstance } from 'vue';
const { proxy } = getCurrentInstance() as any;
//获取父级数据
const props = withDefaults(
  defineProps<{
    text?: string
    size?: number
  }>(),
  {
    text: '暂无内容',
    size: 120,
  },
);

onMounted(() => { });
</script>
<style lang="scss">
.emptyBox {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
</style>
